/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package application.server;

import java.rmi.RemoteException;
import java.rmi.server.RemoteServer;
import java.rmi.server.ServerNotActiveException;

import application.controller.server.UseCaseControllerMediumReserve;
import application.exceptions.ClientNotFoundException;
import application.exceptions.DatabaseException;
import application.exceptions.InsufficientClientRightsException;
import application.exceptions.MediumNotFoundException;
import application.exceptions.ReserveNotAllowedException;
import application.exceptions.SessionException;

/**
 * The Class MediumReserveRemoteImpl.
 */
public class MediumReserveRemoteImpl extends AbstractRemoteImpl implements
		MediumReserveRemote {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 5540600318438135059L;
	
	/** The _controller. */
	private UseCaseControllerMediumReserve _controller;

	/**
	 * Instantiates a new medium reserve remote impl.
	 * 
	 * @throws RemoteException
	 *             the remote exception
	 */
	public MediumReserveRemoteImpl() throws RemoteException {
		super();
		_controller = new UseCaseControllerMediumReserve();
	}

	/* (non-Javadoc)
	 * @see application.server.MediumReserveRemote#reserve(int, int)
	 */
	public void reserve(String sessionId, int clientID, int mediumID) throws RemoteException,
			DatabaseException, MediumNotFoundException,
			ClientNotFoundException, ReserveNotAllowedException, SessionException, InsufficientClientRightsException, ServerNotActiveException {
		_controller.reserve(sessionId, "", clientID, mediumID);
	}
}
